﻿<%@ Page MasterPageFile="~/Site.Master" Language="C#" AutoEventWireup="true" CodeBehind="Validation.aspx.cs" Inherits="Omu.AwesomeWebFormsDemo.Validation" Culture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ul class="bigl">
        <li>
        <%
            Fruitties.Parameters = new Dictionary<string, string>{{"parent","1"}};
             %>
            <o:AjaxDropdown runat="server" ID="Fruitties" Url="~/svc/aja.svc/FruitsDropdown" />
            <asp:RequiredFieldValidator ControlToValidate="Fruitties" runat="server" ErrorMessage="please select a fruit"></asp:RequiredFieldValidator>
        </li>
        <li>
            <o:MultiLookup runat="server" ID="Categories2" GetMultipleUrl="~/svc/aja.svc/CategoryGetMultiple"
                SearchUrl='~/svc/aja.svc/CategorySearch' SelectedUrl="~/svc/aja.svc/CategorySelected" />
            <asp:RequiredFieldValidator ControlToValidate="Categories2" runat="server" ErrorMessage="please choose a category"></asp:RequiredFieldValidator>
        </li>
        <li>
            <o:Lookup runat="server" ID="loko" GetUrl="~/svc/aja.svc/FruitGet" SearchUrl='~/svc/aja.svc/FruitSearch' />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="loko"
                runat="server" ErrorMessage="please select some fruits"></asp:RequiredFieldValidator>
        </li>
        <li>
            <o:AjaxRadioList runat="server" ID="Categories" Url="~/svc/aja.svc/CategoriesDropdown" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="Categories"
                runat="server" ErrorMessage="please select something"></asp:RequiredFieldValidator>
        </li>
        <li>
            <o:AjaxCheckboxList runat="server" ID="SimpleCategories" Url="~/svc/aja.svc/CategoriesCheckboxList" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="SimpleCategories"
                runat="server" ErrorMessage="please check some checkboxes"></asp:RequiredFieldValidator>
        </li>
        <li>
            <asp:Button ID="Button1" runat="server" Text="Submit" />
        </li>
    </ul>
</asp:Content>
